﻿using System.Collections;

namespace Framework.Unity
{
    public static class GenericContainerExtensions
    {
        public static TContract GetA<TContract>(this IContainer container)
        {
            return (TContract)container.GetA(typeof(TContract));
        }

        public static TContract GetA<TContract>(
            this IContainer container,
            IDictionary arguments)
        {
            return (TContract)container.GetA(typeof(TContract), arguments);
        }
    }
}